'use strict';

module.exports = app => {
  app.get('/', 'home.index');
  app.get('/news', 'news.list');

  app.post('/register', 'user.register');
  app.get('/login', 'user.login');
  // app.get('/store/:id', 'user.store');

  app.get('/getOrderList', 'send.getOrderList');
  app.post('/insertOrder', 'send.insertOrder');
  app.get('/getOrderById/:id', 'send.getOrderById');
  app.delete('/deleteOrder/:id', 'send.deleteOrder');
  app.post('/postfile', 'send.postfile');
  

  app.post('/selectdb', 'send.selectdb');
  app.get('/db', 'send.conndb');
  
};
